-- caisson
-- created by panyl
-- 地牢格子：弹药箱

return {
    autoFight = function(grid)
        -- 领取奖励
        local pos = grid:getPos();
        if DungeonInstanceM.isInInstance() then
            if DungeonM.isAllMonsterDead() then
                return DungeonActionM.go("take_instance_bonus", pos);
            end
        else
            return DungeonActionM.go("do_building_bonus", pos);
        end
        return false;
    end,
};
